package com.tito.common.framework.util;


import com.baomidou.mybatisplus.core.toolkit.IdWorker;

/**
 * ID 工具类
 */
public class IdUtil {

    /**
     * 获取long型的ID.
     *
     * @return Long
     * @throws
     * @since 1.0.0
     */
    public static Long getUId() {
        return IdWorker.getId();
    }

    /**
     * 获取字符型的ID
     *
     * @return
     */
    public static String getSuid() {
        return IdWorker.getIdStr();
    }
}
